<?php include $this->tpl('public:common.php') ?>

<div class="well">
    <ul class="nav nav-tabs">
		<?php if($change_password ):?>
			<li ><a href="#home" data-toggle="tab">资料</a></li>
			<li class="active"><a href="#profile" data-toggle="tab">密码</a></li>
		<?php else:?>
			<li class="active"><a href="#home" data-toggle="tab">资料</a></li>
			<li><a href="#profile" data-toggle="tab">密码</a></li>
		<?php endif ?>
    </ul>
    <div id="myTabContent" class="tab-content">
		
		<?php if($change_password ):?>
		  <div class="tab-pane fade" id="home">
		<?php else:?>
		  <div class="tab-pane active in" id="home">
		<?php endif ?>
			<form id="tab" method="post" action="" autocomplete="off">
				<label>登录名</label>
				<input type="text" name="user_name" value="<?=$user_info['user_name']?>" class="input-xlarge" readonly="true">
				<label>姓名</label>
				<input type="text" name="real_name" value="<?=$user_info['real_name']?>" class="input-xlarge">
				<label>手机</label>
				<input type="text" name="mobile" value="<?=$user_info['mobile']?>" class="input-xlarge">
				<label>邮件</label>
				<input type="text" name="email" value="<?=$user_info['email']?>" class="input-xlarge">
				<label>描述</label>
				<textarea name="user_desc" value="Smith" rows="3" class="input-xlarge"><?=$user_info['user_desc']?></textarea>
				<hr />
				<label>显示QuickNote</label>
				<select name="show_quicknote" id="DropDownTimezone" class="input-xlarge">
					<?php foreach($quicknoteOptions as $_val=>$_name):?>
						<option value="<?=$_val?>" class="input-xlarge option"<?=$user_info['show_quicknote']==$_val ? ' selected' : ''?>><?=$_name?></option>
					<?php endforeach?>
				</select>
				<div class="btn-toolbar">
					<button type="submit" class="btn btn-primary"><i class="icon-save"></i> 保存</button>
					<div class="btn-group"></div>
				</div>
			</form>
		  </div>
		<?php if($change_password ):?>
		<div class="tab-pane active in" id="profile">
		<?php else:?>
		<div class="tab-pane fade" id="profile">
		<?php endif ?>
			<form id="tab2" method="post" action="" autocomplete="off">
				<input type="hidden" name="change_password" value="yes" >
				<label>原密码</label>
				<input type="password" name="old" class="input-xlarge">
				<label>新密码</label>
				<input type="password" name="new" class="input-xlarge">
				<div>
					<button class="btn btn-primary">更新</button>
				</div>
			</form>
		</div>
  </div>
</div>
<?php include $this->tpl('public:footer.php') ?>
